package pers.cz.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 使用单例bean来保存生成的路径信息
 * @program: PostGirl-panent
 * @description: ModelAndPath
 * @author: Cheng Zhi
 * @create: 2022-04-05 13:38
 **/
public class ModelAndPath {

    private Map<String,String> configMap = new HashMap<>();
    private static ModelAndPath modelAndPath;

    private ModelAndPath() {

    }

    public static ModelAndPath getInstance() {
        if (modelAndPath == null) {
            modelAndPath = new ModelAndPath();
        }
        return modelAndPath;
    }

    public Map<String, String> getConfigMap() {
        return configMap;
    }

    public void setConfigMap(Map<String, String> configMap) {
        this.configMap = configMap;
    }
}
